home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / MCASM.RAR / MC_ASM.EXE / WROX_ASM / CH6 / TABLE / TAB_COM.TXT
Text File  |  1994-07-15  |  11KB  |  200 lines

  1.  
  2.  Table 8.1. IBM Mode Control Codes.
  3.  
  4.        Dec  Hex    Symbol    Function
  5.     ____________________________________________________________
  6.  
  7.       0     00h      NUL    Follow <ESC> 'B' and <ESC> 'D' as
  8.                             terminator for tabs
  9.       7     07h      BEL    Sound buzzer for 1 second
  10.       8     08h      BS     Backspace Print Head one space
  11.       9     09h      HT     Horizontal Tabulation.
  12.                             Print Head moves to next Tab stop
  13.      10     0Ah      LF     Line Feed. Printer empties its buffer and
  14.                             does line feed at current line spacing and
  15.                             reset buffer pointer to zero.
  16.      11     0Bh      VT     Vertical Tab,or does single line feed
  17.      12     0Ch      FF     Advance paper to next logical Top of Form.
  18.      13     0Dh      CR     Carriage Return. Prints buffer contents and
  19.                             reset buffer character count to zero.
  20.      14     0Eh      SO     Turn on one-line enlarged mode to end of line unless
  21.                             cancelled by DC4 (14h).
  22.      15     0Fh      SI     Turn on Condensed Character Mode. Does not work
  23.                             with Emphasized mode.
  24.                             Stay until cancelled by DC2 (12h).
  25.      17     11h     DC1     Selection  of the printer (ON-LINE)
  26.      18     12h     DC2     Turn off Condensed Characters and empties buffer.
  27.      19     13h     DC3     Deselection of the printer (OFF-LINE)
  28.      20     14h     DC4     Turn off one-line enlarged mode (SO only)
  29.      24     18h     CAN     Cancell all characters in printer buffer
  30.      27     1Bh     ESC     ASCII code for ESCAPE. Prepare printer   to
  31.                             receive control codes.
  32.  
  33. <ESC>    14   OE   SO   Same as SO (14)
  34. <ESC>    15   OF   SI   Same as SI (15)
  35. <ESC>    33   21    !   Masler Select
  36.                         Format: <ESC> '!', n (0<= n <=255)
  37. <ESC>    35   23    #   MSB control sequence cancel
  38. <ESC>    37   25    %   Select Download Character SET.
  39.                         Format: <ESC>,'%',(1)D,(0)D Select Download (RAM)
  40.                                 <ESC>,'%',(O)D,(O)D Select ROM set
  41. <ESC>    38   26    &   Define Download Characters.
  42.                         Format:<ESC>,'&'D c1 c2 a d1....d11
  43.                                33<=cl<=c2<=126 for draft,
  44.                                58<=cl<=c2<=63 for NLQ
  45. <ESC>    42   2A    *   Select one of graphics densities
  46.                         Format: <ESC> '*' m n1 n2
  47.                                 0<=m<=6,0<=n1<=255,0<=n2<=255
  48. <ESC>    45    2D   -   Underline mode.
  49.                         Format: <ESC> '_' n,n=(1)D set underline mode.
  50.                                 n = (0)D clear underline mode
  51. <ESC>    47    2F   /   Select a vertical tab channel.
  52.                         Format: <ESC> '?' n, 0<=n<=7
  53. <ESC>    48    30   0   Set line spacing to 1/8 Inch
  54. <ESC>    49    31   1   Set line spacing to 7/72 inch
  55. <ESC>    50    32   2   Set line spacing to 1/6 inch, Executer for ESC A
  56. <ESC>    51    33   3   Set line spacing to n/216 inch
  57. <ESC>    52    34   4   Turn italic mode ON
  58. <ESC>    53    35   5   Turn italic mode OFF
  59. <ESC>    54    36   6   Select character set 2
  60. <ESC>    55    37   7   Select character set 1
  61. <ESC>    56    38   8   Ignore PAPER END DETECTOR
  62. <ESC>    57    39   9   Enable PAPER END DETECTOR
  63. <ESC>    58    3A   :   Copy the ROM Character set to RAM
  64.                         Format: <ESC> ':' (0)D (0)D (0)D
  65. <ESC>    60    3C   <   One line unidirectional print.
  66.                         Print current line only from left to right
  67. <ESC>    61    3D   =   MSB = 0 setting
  68. <ESC>    62    3E   >   MSB = 1 setting
  69. <ESC>    63    3F   ?   Reassign a graphics density
  70.                         Format: <ESC> '?' s n,s=K,L,Y or Z, 0<=n<=6
  71. <ESC>    84    40   @   Reset all special modes to power up state
  72. <ESC>    65    41   A   Set line spacing to n/72 Inch and is executed
  73.                         by ESC '2' code.
  74.                         Format: <ESC> 'A' n, 0<=n<=85
  75. <ESC>    66    42   B   Set Vertical Tabs and reset current tabs.
  76.                         Format: < ESC> 'B' nl ..nk NUL, l<=n<=255, l<=k<=16
  77.                         Terminate Tabs sequence with zero
  78. <ESC>    67    43   C   Set form length and reset Top of form
  79.                         Format: <ESC> 'C' m, Set to m lines. 1<=m<=127
  80. <ESC>    68    44   D   Set Horizontal Tabs and reset current tabs.
  81.                         Format: <ESC> 'D' n1...nk NUL
  82.                                 1<=n<=271,1<=k<=32
  83.                         Tabs may range up to maximum width for character
  84.                         and printer size. e.g. Maximum Tabs for Normal
  85.                         characters is 135.
  86.                         Terminate Tabs sequence with zero
  87. <ESC>    69    45   E   Turn on EmphasIzed mode. Can't mix with Elite
  88.                         and Condensed modes
  89. <ESC>    70    46   F   Turn off Emphasized mode
  90. <ESC>    71    47   G   Turn on Double strike mode
  91. <ESC>    72    48   H   Turn off Double strike mode
  92. <ESC>    74    4A   J   Set line spacing to n/216 inch for one lIne only and
  93.                         when recieved causes contents of buffer to print.
  94.                         Format: <ESC> 'J' n, 0<=n<=255
  95. <ESC>    75    4B   K   Set Bit image (8 pin) mode to 816 dots/line.
  96.                         Format: <ESC> 'K' n1 n2 (Normal speed)
  97.                                 0<=n1<=255, 0<=n2<=255
  98.                         n1 and n2 determine line length = n1+n2*256
  99. <ESC>    76    4C   L   Set Bit image (8 pin) mode to 1632 dots/line.
  100.                         Format: <ESC> 'L' n1 n2 (Half speed)
  101.                                 0<=n1<=255, O<=n2<=255
  102.                         n1 and n2 determine line length = n1+n2*256
  103. <ESC>    77    4D   M   Set ELITE size printing mode (12 cpi) (draft only)
  104.                         Cannot mix with NLQ, pica, or emphasized mode
  105. <ESC>    78    4E   N   Set skip over perforation to n lines.
  106.                         Format: <ESC> 'N' n, 1<=n<=127
  107. <ESC>    79    4F   O   Reset skip over perforation to 0 lines
  108. <ESC>    80    5O   P   Turns ELITE mode OFF, Returns to pica unless
  109.                         compressed mode is active
  110. <ESC>    81    51   Q   Set the right margin.
  111.                         Format: <ESC> 'Q' n, where n is,
  112.                                 2.136 Pica
  113.                                 3.183 Elite
  114.                                 4.233 Condensed
  115.                                 4.272 Condensed elite
  116. <ESC>    82    52   R   Select an international character set by its
  117.                         country's number.
  118.                         Format: <ESC> 'R' n, 0<=n<=10
  119. <ESC>    83    53   S   Set Superscript or Subscript modes.
  120.                         Format: < ESC> 'S' n
  121.                         n = 0(D) superscript, n =(1)D subscript
  122. <ESC>    84    54   T   Reset Superscripl and Subscript modes
  123. <ESC>    85    55   U   Continuous unidirectional printing mode.
  124.                         Format: < ESC> 'U' n,n =(l)D ON, n = (O)D OFF
  125. <ESC>    87    57   W   Continuous enlarged printing mode, Stay ON until
  126.                         turned OFF
  127.                         Format: <ESC> 'W' n n=(l)D ON, n=(O)D OFF
  128. <ESC>    89    59   Y   Set Bit image mode to 1832 dots/line (Normal Speed)
  129.                         Format: <ESC> 'Y' n1 n2, 0<=n1<=255, 0<=n2<=255
  130.                                 n1 and n2 determine line length = n1+n2*255
  131. <ESC>    9O    5A   Z   Set Bit image mode to 3264 dots/line (Haif speed)
  132.                         Format: <ESC> 'Z' nl n2, 0<=n1<=255, 0<=n2<=255
  133.                                 n1 and n2 determine line length =n1+n2*255
  134. <ESC>    94    5E   ^   Turn 9-pin graphics ON.
  135.                         Format: <ESC> '^' a nl n2
  136.                                 a=0 single density (816 dots/line)
  137.                                 a=1 double density (1632 dots/line)
  138.                                 0<=n1<=255, 0<=n2<=255
  139.                                 nl and n2 determine line length=n1+n2*256
  140. <ESC>    97    61   a   Set near justification format in NLQ mode
  141.                         Format: <ESC> 'a' n, 0<=n<=3
  142. <ESC>    98    62   b   Set up to16 vertical tabs for channel m.
  143.                         Format: <ESC> 'b' m n1 n2 .. nk NUL
  144.                                 0<=m<=7,1<=n<=255,1<=k<=16
  145. <ESC>   101    65   e   Set horizontal and vertical tab increments.
  146.                         Horizontal format: <ESC> 'e' 0 n
  147.                         where n is the number of spaces and equals:
  148.                           0.21 Pica
  149.                           0.25 Elite
  150.                           O.36 Condensed
  151.                         Vertical format: <ESC> 'e' 1 n
  152.                         where n is the number of line feeds
  153. <ESC>   102    66   f   Print spaces or line feed without carriage returns
  154.                         Horizontal format: <ESC> 'f' 0 n
  155.                         where n is the number of spaces, 0<=n<=127
  156.                         Vertical format: <ESC> 'f' 1 n
  157.                         where n is the number of line feeds, 0<=n<=127
  158. <ESC>   108    6C   l   Set the left margin
  159.                         Format: <ESC> 'l' n
  160.                                 0.134 Pica
  161.                                 0.18O Elite
  162.                                 0.229 Condensed
  163.                                 0.268 Condensed elite
  164. <ESC>   109    6D   m   Make available the european character set, which is
  165.                         stored behind the control codes at ASCII positions
  166.                         128 to 159.
  167.                         Format: <ESC> 'm' n
  168.                                 n=0 Turn the european characters OFF
  169.                                 n=4 Turn the european characters ON
  170. <ESC>    112    70   p  Set proportional spacing mode.
  171.                         Format: <ESC> 'p' n
  172.                                 n = 0 normal spacing
  173.                                 n = 1 proportional spacing mode
  174. <ESC>    115    73   s  Select the print speed.
  175.                         Format < ESC> 's' n
  176.                                n = 0 Cancel half-speed mode.
  177.                                n = 1 Set half-speed mode
  178. <ESC>    120    78   x  Select draft or NLQ mode.
  179.                         Format: <ESC> 'x' n
  180.                         n = 0 Cancel NLQ mode and selects draft mode.
  181.                         n = 1 Select NLQ mode
  182. 127     7F     DEL     Delete last character in printer buffer
  183. 128     8O     NUL    Same as NUL (0)
  184. 135     87     BEL    Same as BEL (7)
  185. 136     85     BS     Same as BS (8)
  186. 137     89     HT     Same as HT (g)
  187. 136     8A     LF     Same as LF (10)
  188. 13g     8B     VT     Same as VT (11)
  189. 140     8C     FF     Same as FF (12)
  190. 141     8D     CR     Same as CR (13)
  191. 142     8E     SO     Same as SO (14)
  192. 143     8F     SI     Same as SI (15)
  193. 146     92     DC2     Same as DC2 (18)
  194. 148     94     DC4     Same as DC4 (20)
  195. 152     98     CAN     Same as CAN (24)
  196. 155     9B     ESC     Same as ESC (27)
  197.  
  198.   Note: The high order conlrol codes (128 to 155) can not be used if the
  199. european characters are activated.
  200.